<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<head>
<meta name="menu" content="superviseMenu" />
<meta name="nav" content="1" />
<meta name="acc" content="0" />
<title></title>
<script type="text/javascript" charset="utf-8"
	src="<c:url value='/KindEditor/kindeditor.js'/>"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$("#prepareDate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '1900-10-01',
				dateFmt : 'yyyy-MM-dd'
			});
		});
		$("#dealDate").addClass("Wate").bind("click", function() {
			WdatePicker({
				skin : 'whyGreen',
				minDate : '#F{$dp.$D(\'prepareDate\')}',
				dateFmt : 'yyyy-MM-dd'
			});
		});

		$("#a_submit").click(function() {
			KE.sync("content");
			$("#inputForm").submit();
			$(window.parent.close());
		});
	});

	function closeeds() {
		$(window.parent.close());
	}
	
	KE.show({
		id : 'content',
		cssPath : './index.css',
		afterCreate : function(id) {
			KE.event.ctrl(document, 13, function() {
				KE.sync(id);
				document.forms['inputForm'].submit();
			});
			KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
				KE.sync(id);
				document.forms['inputForm'].submit();
			});
		}
	});
</script>
</head>
<body>
	<form action="${ctx }/quality/check_result!save.action" id="inputForm"
		method="post" class="yform" enctype="multipart/form-data">
		<div id="heading" class="">
			<h3>发现问题及处理措施</h3>
		</div>
		<input type="hidden" name="id" id="id" value="${id}"> <input
			type="hidden" name="projectId" id="projectId"
			value="${empty param.projectId ? projectId : param.projectId }">
		<input type="hidden" name="cid" id="cid" value="${cid }">
		<div>
			<table class="noborder">
				<tr class="type-text">
					<td>工程名称</td>
					<td><pt:labels type="proj"
							argument1="${empty param.projectId ? projectId : param.projectId }"
							single="true"></pt:labels>
					</td>
					<td>问题类型</td>
					<td><pt:code category="3011" name="type" default="${type}"></pt:code>
					</td>
				</tr>
				<tr class="type-text">
					<td>概要描述</td>
					<td colspan="3"><textarea rows="3" name="content" id="content">${content}</textarea>
					</td>
				</tr>
				<tr class="type-text">
					<td>发现时间</td>
					<td><input type="text" id="prepareDate" name="prepareDate"
						value="${prepareDate}" readonly="readonly"></td>
					<td>处理时间</td>
					<td><input type="text" id="dealDate" name="dealDate"
						value="${dealDate}"></td>
				</tr>
				<tr class="type-text">
					<td>处理措施</td>
					<td colspan="3"><textarea name="dealContent" id="dealContent">${dealContent }</textarea>
					</td>
				</tr>
				<tr class="type-text">
					<td>备注</td>
					<td colspan="3"><textarea rows="3" name="remark">${remark}</textarea>
					</td>
				</tr>
			</table>
		</div>
		<div class="type-button">
			<input type="button" class="submit" value="保存" id="a_submit" />&nbsp;
			<input type="button" value="关闭" class="reset" onclick="closeeds();" />
		</div>
	</form>
</body>